package com.xindaoapp.happypet.bean;

import java.io.Serializable;

/**
 * 兑换商品列表
 * 
 * @author Administrator
 * 
 */
public class GoodsRecord implements Serializable {

    public String goods_name;
    public String exchange_integral;// 兑换积分
    public String goods_thumb;// 商品缩略图
    public String exchange;
    public String updatetime;

    public String integral_id;
    public String exchangetitle;// 兑换状态

    @Override
    public boolean equals(Object obj) {
        // TODO Auto-generated method stub
        // 待比较的两个对象是同一个对象，直接返回true
        if (this == obj) {
            return true;
        }
        // 只有当obj是Person对象
        if (obj != null && obj.getClass() == GoodsRecord.class) {
            GoodsRecord oTiezi = (GoodsRecord) obj;
            // 并且当前对象的tid与obj对象的tid相等才可判断两个对象相等
            if (this.integral_id.equals(oTiezi.integral_id)) {
                return true;
            }
        }
        return false;
    }
}
